[Artifact1572] アフターグロウの作成#2078
Open
ogachu0331 wants to merge 8 commits into
Open
Conversation
Lapis-LJA
requested changes
Jun 19, 2026
| # 神器の発動条件 (TextComponentString) (オプション) | ||
| # data modify storage asset:artifact Condition set value | ||
| # 攻撃に関する情報 -Damage量 (literal[]/literal) Wikiを参照 (オプション) | ||
| data modify storage asset:artifact AttackInfo.Damage set value [9999] |
Contributor
|
何Tickで着弾するのか、というのも調整されると思うので神器側定義で良いかも? |
Lapis-LJA
requested changes
Jul 16, 2026
Comment on lines
+7
to
+9
| # 神器の基本的な条件の確認を行うfunction、成功している場合CanUsedタグが付く | ||
| #function asset:artifact/common/check_condition/mainhand | ||
| # 他にアイテム等確認する場合はここに書く |
Contributor
There was a problem hiding this comment.
この条件を無視すると信仰外でもポインターが表示されるので、無視しないほうが良いかも
| # Object召喚 | ||
| data modify storage api: Argument.ID set value 1166 | ||
| # ダメージセット | ||
| data modify storage api: Argument.FieldOverride.Damage set value 9999.9 |
Contributor
There was a problem hiding this comment.
9999.9d と書くといいかも(floatだと稀に計算の際にダメージが誤差で小さくなる場合がある)
Comment on lines
+26
to
+38
| data modify storage lib: Argument.BoundingCylinder.Selector set value "@e[type=#lib:living_without_player,tag=Enemy,tag=!Uninterferable]" | ||
| execute positioned ~ ~-1 ~ run function lib:bounding_cylinder/ | ||
| # ダメージ | ||
| data modify storage api: Argument.Damage set from storage asset:context this.Damage | ||
| data modify storage api: Argument.AttackType set value "Magic" | ||
| data modify storage api: Argument.ElementType set value "Thunder" | ||
| execute store result score $UserID Temporary run data get storage asset:context this.UserID | ||
| execute as @a if score @s UserID = $UserID Temporary run function api:damage/modifier | ||
| execute as @e[type=#lib:living_without_player,tag=Enemy,tag=BoundingCylinder,tag=!Uninterferable] run function api:damage/ | ||
| function api:damage/reset | ||
| scoreboard players reset $UserID Temporary | ||
| # tagリセット | ||
| tag @e[type=#lib:living_without_player,tag=Enemy,tag=BoundingCylinder,tag=!Uninterferable] remove BoundingCylinder |
Contributor
There was a problem hiding this comment.
範囲内の3か所のセレクターに..128とかでもいいのでdistanceをつけてほしいかな
distanceの指定がないと別のdimensionも総当たりしてしまうので
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
圧倒的ロマン砲